<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
	</head>
	<body>
		<button id="btn1">按钮</button>
	</body>
	<script type="text/javascript">
		window.onload=function(){
			const btn1=document.getElementById("btn1");
			btn1.onclick=function(){
				if("ActiveXObject" in window){
					alert('你是IE');
				}else{
						alert('你不是IE');
					}	
			}
				
		};
	</script>
</html>
